package com.lyw.gulimall.product.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyw.gulimall.product.entity.AttrEntity;
import com.lyw.gulimall.product.vo.AttrRespVo;
import com.lyw.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author liyawei
 * @email liyawei@gmail.com
 * @date 2022-05-31 11:06:15
 */
public interface AttrService extends IService<AttrEntity> {

    IPage<Map<String, Object>> queryPage(Integer page, Integer limit, String name);

    void saveAttr(AttrVo attr);

    IPage<AttrRespVo> queryAttrBasePage(Long catelogId, Integer page, Integer limit, String name, String type);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    List<AttrEntity> selectSearchAttrIds(List<Long> attrIds);

}

